package com.example.feignclient;

import config.Configuration1;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;

/**
 * Created by linving on 2017/1/9.
 */
@FeignClient(name = "user-provider", fallback = UserFeignClientFallback.class, configuration = Configuration1.class)
public interface UserFeignClient {

    @RequestLine("GET /test?name={name}")
    String test(@Param("name") String name);

}
